package http;

import android.content.Context;

import com.dx.as.common.ILoadListener;

/**
 * Created by jwaoo on 2017/5/26.
 */

public abstract class IHttpListener {
    protected ILoadListener loadListener;
    protected Context context;
    public IHttpListener(Context context,ILoadListener loadListener) {
        this.loadListener = loadListener;
        this.context = context;
    }
    protected IHttpListener(){

    }

    public void onFilure(int code,String errorMsg){

    }
    public abstract void onResponse(Object response, int flg);
    public abstract void onFailure(Throwable t);

}
